home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "ftpglob"
- Global SelectedServerFile As String
-
- Sub SetSelectedServerFile(s As String)
- SelectedServerFile = s
- End Sub
-
- Function GetSelectedServerFile() As String
- GetSelectedServerFile = SelectedServerFile
- End Function
- Sub ClearListDir()
- MainForm.listDir.Clear
- SelectedServerFile = ""
- End Sub
- Function GetCurrentFilename() As String
- Dim s As String
- Dim i As Integer
-
- If (MainForm.listDir.ListIndex = -1) Then
- GetCurrentFilename = ""
- Else
- s = MainForm.listDir.list(MainForm.listDir.ListIndex)
- i = Len(s)
- Do While (Mid(s, i - 1, 1) <> " ")
- i = i - 1
- Loop
- GetCurrentFilename = Mid(s, i)
- End If
- End Function
-
- Sub Trace(list As ListBox, msg As String)
- Dim crpos As Integer
-
- If (list.ListCount > 100) Then
- list.RemoveItem 0
- End If
- crpos = InStr(msg, vbCrLf)
- If (crpos = 0) Then
- msg = msg & vbCrLf
- crpos = InStr(msg, vbCrLf)
- End If
- Do While (crpos > 0)
- list.AddItem Left(msg, crpos - 1)
- list.ListIndex = list.NewIndex
- msg = Mid(msg, crpos + 2)
- crpos = InStr(msg, vbCrLf)
- Loop
- End Sub
-
-